package me.zhengjie.modules.forecast.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.heshuo.amm.model.FlightConfig;
import com.heshuo.amm.service.FlightFile;

import cn.ait.amfp.model.METMessageType;

public class FlightFileDTO extends FlightFile {

	public FlightFileDTO(FlightConfigDTO config, Date time) {
		super(config, time);
	}
	@Override
	public List<METMessageType> getMETMessageType(FlightConfig config){
		List<METMessageType> messageType = new ArrayList();
		List<String> list = (List<String>) config.getContentMap().get("category");//MESSAGE_TYPE
		for(String type:list){
			messageType.add(METMessageType.valueOf(type));
		}
		return messageType;
	}
	@Override
	public List<String> getPublishedCenter(FlightConfig config){
		List<String> releaseCenters = (List<String>) config.getContentMap().get(FlightFile.PUBLISHED_CENTER);
		return releaseCenters;
	}
	@Override
	public List<String> getImportantWeatherForecastMapHeight(FlightConfig config) {
		List<String> list = (List<String>) config.getContentMap().get(FlightFile.IMPORTTANT_WEATHER_FORECAST_MAP);
		return list;
	}
	@Override
	public List<String> getArea(FlightConfig config) {
		List<String> list = (List<String>) config.getContentMap().get(FlightFile.AREA);
		return list;
	}
	@Override
	public List<String> getHeights(FlightConfig config) {
		List<String> list = (List<String>) config.getContentMap().get(FlightFile.HEIGHT);
		return list;
	}
	@Override
	public List<String> getEffectiveTime(FlightConfig config) {
		List<String> list = (List<String>) config.getContentMap().get(FlightFile.EFFECTOVE_TIME);
		return list;
	}
	@Override
	public List<String> getAging(FlightConfig config) {
		List<String> list = (List<String>) config.getContentMap().get(FlightFile.AGING);
		return list;
	}
	@Override
	public String getRegion(FlightConfig config) {
		String list =  (String) config.getContentMap().get(FlightFile.FLIGHT_INFO_REGION);
		return list;
	}
	
	
	
	
	

}
